import { createPinia } from 'pinia'
import { createApp } from 'vue'
import App from '../App.vue'
import { defineStore,PiniaVuePlugin } from 'pinia' //引入 defineStore 定义仓库
const app = createApp(App)
app.use(PiniaVuePlugin)
const pinia = createPinia()
import piniaPluginPersist from 'pinia-plugin-persist'
pinia.use(piniaPluginPersist)
export default pinia